import cv2

img = cv2.imread('statue_small.jpg', 0)
t1, dst1 = cv2.threshold(img, 127, 255, cv2.THRESH_TOZERO)
cv2.imshow('src', img)
cv2.imshow('dst1', dst1)
cv2.waitKey()
cv2.destroyAllWindows()
